// 获取胶囊按钮高度
const SYST_INFO = uni.getSystemInfoSync();

export const getStatusBarHeight =()=>SYST_INFO.statusBarHeight || 15

export const getTitleHeight=()=>{
	if (uni.getMenuButtonBoundingClientRect){
		let {top,height}= uni.getMenuButtonBoundingClientRect();
		let titleHeight= height+(top - getStatusBarHeight())*2
		return titleHeight
	}else{
		return 40;
	}
	
}
export const getNavBarHeigt=()=>getStatusBarHeight()+getTitleHeight();